package cn.ycc1.boot3ttl.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author ycc
 * @date 2024/9/22
 */
@Data
@Component
@ConfigurationProperties(prefix = "my")
public class MyConfigurationProperties {
    /**
     * 线程池线程名前缀
     */
    private String threadNamePrefix = "My-Ttl-";
    /**
     * 核心线程数
     */
    private int corePoolSize = 10;
    /**
     * 最大线程数
     */
    private int maxPoolSize = 25;
    /**
     * 线程存活时间长度
     */
    private int keepAliveSeconds = 60;
    /**
     * 任务队列长度
     */
    private int queueCapacity = 800;
}
